package com.example.kugou.common.email;

//生成时间戳
////方法 一
//System.currentTimeMillis();
////方法 二
//Calendar.getInstance().getTimeInMillis();//这种方法最慢
////方法 三
//new Date().getTime();
public class EamilCode {
    private String resultCode;
    //生成时间
    private long generated;
    //失效时间
    private long failure;

    public void setFailure(long generated) {
        this.generated = generated;
        //设置失效时间
        this.failure = generated + (5*60*1000);
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public long getGenerated() {
        return generated;
    }

    public long getFailure() {
        return failure;
    }
}
